Skip to main content

SetRowHeight

Sets the height of the specified row measured in points. A point is 1/72 inch.

Syntax

expression.SetRowHeight(nRow, nHeight);

expression - A variable that represents a ApiWorksheet class.

Parameters

NameRequired/OptionalData typeDefaultDescription
nRowRequirednumberThe number of the row to set the height to.
nHeightRequirednumberThe height of the row measured in points.

Returns

This method doesn't return any data.

Example

This example sets the height of the specified row measured in points.

var oWorksheet = Api.GetActiveSheet();
oWorksheet.SetRowHeight(0, 30);